Default Makefile

When you have the server and client project in the same directory and if Make is called from some place higher up in the directory structure, you need to create the following additional Makefile in your

grid_server directory and call it Makefile . This Makefile in turn calls Makefile.server and Makefile.client .

all:
@if [ -f Makefile.server ]; then\
$(MAKE) $(MFLAGS) -f Makefile.server all;\
fi;\
if [ -f Makefile.client ]; then\
$(MAKE) $(MFLAGS) -f Makefile.client all;\
fi
.DEFAULT:
@if [ -f Makefile.server ]; then\
$(MAKE) $(MFLAGS) -f Makefile.server $@;\
fi;\
if [ -f Makefile.client ]; then\
$(MAKE) $(MFLAGS) -f Makefile.client $@;\
fi